<template>
  <div class="head">
    <div class="top">
    </div>
    <div class="nav df ai">
      <div class="logo">
        <img class="btimg" src="@/assets/images/1.png" alt="">
      </div>
      <ul class="df ai nav-list f14">
        <li>
          <router-link tag="a" activeClass="active-nav" to="/home">首页</router-link>
        </li>
        <li v-if="roleType">
          <router-link tag="a" activeClass="active-nav"  to="/todoList">统一待办</router-link>
        </li>
        <li>
          <router-link tag="a" activeClass="active-nav"  to="/newsList">新闻公告</router-link>
        </li>
        <li>
          <router-link tag="a" activeClass="active-nav"  to="/appStore">应用中心</router-link>
        </li>
        <li>
          <router-link tag="a" activeClass="active-nav"  to="/contactBooks">通讯录</router-link>
        </li>
      </ul>
      <img class="btimg2" src="@/assets/images/bt.png" alt="">
    </div>
    <div class="banner">
      <img src="@/assets/images/3.png" />
    </div>
  </div>
</template>

<script>
export default {
  computed: {
    roleType () {
      // roleType标志
      return JSON.parse(decodeURI(localStorage.getItem('userinfo'))).roleType * 1 > 1
    }
  }
}
</script>

<style lang="scss" scoped>
.head{
  margin-bottom: 10px;
  .top{
    height: 25px;
    background-color: #a40707;
    z-index: -1;
  }
  .nav{
    height: 45px;
    min-width: 990px;
    .logo{
      background-color: #d10202;
      height: 70px;
      overflow: hidden;
      margin:-25px 0 0 50px;
      width: 124px;
      .btimg{
        width: 100px;
      }
    }
    .nav-list{
      height: 100%;
      flex: 1;
      li{
        .active-nav{
          border-bottom: 3px solid #c61919;
        }
        a{
          color: black;
          padding: 0 12px 8px 12px;
        }
      }
    }
    .btimg2{
      height: 11px;
      width: 255px;
    }
  }
  .banner{
    height: 250px;
    width: 100%;
    overflow: hidden;
    img{
      width: 100%;
      height: 100%;
    }
  }
}
</style>
